package team02.client.core.test.question;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class QuestionAN implements IsSerializable {

	//	public static final QuestionAN AN_VINP = new QuestionAN(0, Question.QUESTION_MARKER_INSERT_MARK);
	int answerNumber;
	String answerType;
	List<QuestionS> selectionList;
	List<String> writeList;
//	QuestionSC score;
	private int scoreInt;

	public QuestionAN() {}

	public QuestionAN(int answerNumber, String answerType) {
		this.scoreInt = 0;
		this.answerNumber = answerNumber;
		this.answerType = answerType;
		this.selectionList = new ArrayList<QuestionS>();
		this.writeList = new ArrayList<String>();
	}

//	public QuestionSC getScore() {
//		return score;
//	}
//
//	public void setScore(QuestionSC score) {
//		this.score = score;
//	}
	
	

	public void addSelection(QuestionS selection) {
		this.selectionList.add(selection);
	}

	public void addWrite(String write) {
		this.writeList.add(write);
	}

	public int getNumber() {
		return answerNumber;
	}

	public String getType() {
		return this.answerType;
	}

	public void setScoreInt(int i) {
		this.scoreInt = i;
	}

	public int getScoreInt() {
		return this.scoreInt;
	}

	public int getAnswerNumber() {
		return answerNumber;
	}

	public void setAnswerNumber(int answerNumber) {
		this.answerNumber = answerNumber;
	}

	public String getAnswerType() {
		return answerType;
	}

	public void setAnswerType(String answerType) {
		this.answerType = answerType;
	}

	public List<QuestionS> getSelectionList() {
		return selectionList;
	}

	public void setSelectionList(List<QuestionS> selectionList) {
		this.selectionList = selectionList;
	}

	public List<String> getWriteList() {
		return writeList;
	}

	public void setWriteList(List<String> writeList) {
		this.writeList = writeList;
	}
	
}
